<template>
  <div>
    <div>Son</div>
    <form>
      <span>用户名</span>
      <input type="text" name="username" v-model="form.username" />
      <span>密码</span>
      <input type="text" password="password" v-model="form.password" />
    </form>
  </div>
</template>
 
<script>
export default {
  name: "Son",

  data() {
    return {
      form: {
        username: "",
        password: "",
      },
    };
  },
  methods: {
    sonBtn() {
      console.log(this.form.username, this.form.password);
      this.form.username = "";
      this.form.password = "";
    },
  },
};
</script>

<style scoped>
</style>